package day4;

import java.util.Scanner;

/**
 * @author oldliu
 * @since 1.0
 */
public class Zhengfangxing {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int h=0;
        while (h<1){
            System.out.println("请输入正方形的高度：");//高度>=1
            h=sc.nextInt();
        }
        //输出单行,一行h个*
        for(int j=1;j<=h;j++){
            for(int i=1;i<=h;i++)
                System.out.print("* ");
            System.out.println();
        }
    }
}
